package com.test.aop.stop.service.proxy;

import com.test.aop.stop.service.*;

/**
 * @author 代廷波
 * @className: ProxyIStopProxyService
 * @description: 静态代理
 * @create 2018/11/14 0014-10:15
 **/
public class StaticProxy {

    private IStaticProxyService staticProxyService;

    public StaticProxy(IStaticProxyService staticProxyService){
        this.staticProxyService =staticProxyService;
    }

    public void addTestProxy(){
        System.out.println("代理方法开始执行");
        staticProxyService.addTest();
        System.out.println("代理方法结束");
    }
}
